<div class="container-fluid" style="padding: 20px 10px 0px 10px">
	<div class="row-fluid">
		<div class="well">
		    <ul class="nav nav-tabs">
		      <li class="active"><b>添加消息推送</b></li>
		    </ul>
		    <div id="myTabContent" class="tab-content">
				<div class="tab-pane active in" id="home">
					<form id="formid" action="/sysmsg/addPush" method="post">

						<p><label>推送标题：<input type="text" value="" placeholder="推送标题" style="width:205px" name="push_title"  class="checktitle"></label></p>
						<!-- <p><label>点击后操作：<select name="" id=""><option value=""></option></select></label></p> -->
						<p>推送类型：<label style="display: inline;margin-top: 20px;margin-bottom: 20px;"><input type="radio" value="0" name="push_type"  class="checktitle" checked> 所有用户</label> <label style="display: inline;margin-left: 10px;margin-bottom: 20px;margin-top: 20px;"><input type="radio" value="1" name="push_type"  class=""> 指定用户</label></p>
						<p class="platform_display" style="display:none;">推送平台：<label style="display: inline;margin-top: 20px;margin-bottom: 20px;"><input type="radio" value="1" name="push_platform_type" checked> IOS</label> <label style="display: inline;margin-left: 42px;margin-bottom: 20px;margin-top: 20px;"><input type="radio" value="0" name="push_platform_type"  class=""> Android</label></p>
						<span class="is_display" style="display:none;">用户ID：<textarea name="push_to" placeholder="指定用户为多个用户id，逗号隔开" style="width:205px;height:100px;margin-top:-19px;margin-left:70px;resize: none;" /></textarea></span>
						<p>推送消息：<textarea name="push_content" placeholder="推送消息" style="width:205px;height:100px;margin-top:-19px;margin-left:70px;resize: none;" /></textarea></p>
						</p>
						<input type="hidden" value="1" name="dosubmit" />
					</form>
				</div>
				<div class="btn-toolbar">
				    <button class="btn btn-primary" id="btn-save"><i class="icon-save"></i> 确认</button>
				  <div class="btn-group">
				  </div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$(function(){
	$('#btn-save').click(function(){
		if($('input[name=push_title]').val() == ''){
			showmsg('推送标题不能为空');return false;
		}else if ($('input[name=push_content]').val() == '') {
			showmsg('推送消息不能为空');return false;
		}else{
			setBtn($('#btn-save'));
			$('#formid').submit();
		}
	});

	$('input[name=push_type]').click(function() {
		v = $(this).val();
		if(v == 1){
			$('.is_display').show();
			$('.platform_display').show();
		}else{
			$('.is_display').hide();
			$('.platform_display').hide();
		}
	});
})
</script>